<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>Easter Calendar</title>
        <meta name="keywords" content="" />
        <meta name="description" content="" />
        <script type="text/javascript" src="../../libs/js/jquery.min.js"></script>
        <script type="text/javascript">
            jQuery.noConflict();
        </script>     
        <script type="text/javascript" src="../../libs/js/jquery.blockUI.js"></script>
        <script type="text/javascript" src="../../libs/js/jquery.cookie.js"></script>
           
        <script type="text/javascript" src="<?php echo $view->config['template_url']; ?>assets/js/webjs.js?<?php echo time();?>"></script>   
        <link type="text/css" rel="stylesheet" href="../../libs/lightface/Assets/LightFace.css" />
        
        <script type="text/javascript" src="../../libs/js/mootools-core-1.4.5-full-nocompat.js"></script>
        <script type="text/javascript" src="../../libs/lightface/tests/mootools-more-drag.js"></script>
        <script type="text/javascript" src="../../libs/lightface/Source/LightFace.js"></script>
        <script type="text/javascript" src="../../libs/lightface/Source/LightFace.Request.js"></script>
        <script type="text/javascript" src="../../libs/lightface/Source/LightFace.Static.js"></script>
        <script type="text/javascript" src="../../libs/lightface/Source/LightFace.IFrame.js"></script>
        <script type="text/javascript" src="../../libs/lightface/Source/LightFace.Image.js"></script>
        <script type="text/javascript" src="../../libs/js/augment.min.js"></script>        
        <!-- start loading private library -->
        <script type="text/javascript" src="<?php echo $view->config['template_url']; ?>assets/js/facebooktab.js"></script>

        <link rel="stylesheet" type="text/css" href="<?php echo $view->config['template_url']; ?>assets/css/import.css" />        
        <link rel="stylesheet" type="text/css" href="<?php echo $view->config['template_url']; ?>assets/css/index.css" />
        <link type="text/css" rel="stylesheet" href="<?php echo $view->config['template_url']; ?>assets/css/style.css" />
        <style type="text/css">
            p {
                line-height:16px;
                margin:0px;
                padding:0px;
            }
            ul.calenda li a{ display:block; padding:22px 0px 22px 0px; font-family:"Trebuchet MS", Arial, Helvetica, sans-serif; font-size:20px; font-weight:bold; text-decoration:none; color:#656565;}
            ul.calenda li a:hover{ color:#fff;}
            img a{ border:0px; background:none;}
            img{ border:0px; background:none;}
            #questionform{
                padding: 20px;
            }
            #questionform td{
                padding-bottom: 5px;
            }
            input.error, textarea.error, select.error {
                border: 1px solid #CD2024 !important;
            }
            #top_logo_white{     
                    z-index:9;
                    padding: 3px 12px;
                    background:#fff;
                    -webkit-border-radius: 5px;
                    -moz-border-radius: 5px;
                    border-radius: 5px;

                    transform: skewX(-10deg);
                    -ms-transform: skewX(-10deg); /* IE 9 */
                    -webkit-transform: skewX(-10deg); /* Safari and Chrome */
                    -o-transform: skewX(-10deg); /* Opera */
                    -moz-transform: skewX(-10deg); /* Firefox */
                    margin-top: 10px;
                    margin-right: 20px;
                    float: right;
            }
            #top_logo{
                transform: skewX(10deg);
                -ms-transform: skewX(10deg); /* IE 9 */
                -webkit-transform: skewX(10deg); /* Safari and Chrome */
                -o-transform: skewX(10deg); /* Opera */
                -moz-transform: skewX(10deg); /* Firefox */
            }            
        </style>
        <?php if ($view->settings['google_analytics_code'] != "") { ?>
            <!-- BEGIN GOOGLE ANALYTICS CODE -->
            <script type="text/javascript">
                //<![CDATA[
                (function() {
                    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
                    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
                    (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(ga);
                })();
                var _gaq = _gaq || [];
                _gaq.push(['_setAccount', '<?php echo @$view->settings['google_analytics_code']; ?>']);
                _gaq.push(['_trackPageview']);
                //]]>
            </script>
            <!-- END GOOGLE ANALYTICS CODE -->
        <?php } ?>
    </head>

    <body>
        <div id="fb-root"></div>
        <div class="etcwrapper" style="height: 1025px;">      
            <?php if($view->settings['is_show_logo'] == 1) {?>
            <div id="top_logo_white" style="background-color: #F0F0F0;">
                <div id="top_logo">
                    <?php if($view->settings['logo_img_url'] != "") {?>
                    <a href="<?php echo $view->settings['logo_url']; ?>" target="_blank">
                        <img style="border-width: 0px;" src="<?php echo $view->settings['logo_img_url']; ?>" alt="logo" width="<?php echo $view->settings['logo_custom_width']; ?>"<?php if($view->settings['logo_custom_height'] != ""){?>  height="<?php echo $view->settings['logo_custom_height']; ?>"<?php } ?> />
                    </a>
                    <?php } ?>
                </div>
            </div>
            <?php } ?>
            <div class="etcheader">
                <h1><img src="<?php echo $view->config['template_url']; ?>assets/images/texthead.png" alt="Påskenøtter 2013" /></h1>
            </div>           
            <div class="socialarea" style="float: right;margin-top: -120px;margin-right: 10px;">
                <?php if($view->settings['is_show_facebook_share']){ ?>
                <a href="javascript:webjs.share();"><img src="<?php echo $view->settings['facebook_share_button_url']; ?>" style="width: 60px;vertical-align: middle;" /></a>                    
                <?php } ?>
                <?php if($view->settings['is_show_facebook_like']){ ?>
                <iframe src="//www.facebook.com/plugins/like.php?href=<?php echo urlencode($view->config['facebooktab_share_url']); ?>&amp;send=false&amp;layout=button_count&amp;width=90&amp;show_faces=false&amp;action=like&amp;colorscheme=light&amp;font&amp;height=20" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:90px; height:20px;vertical-align: middle;" allowTransparency="true"></iframe>
                <?php } ?>
            </div>
            <!-- START VIEW -->
            <?php echo $view->view_content; ?>
            <!-- END VIEW -->	
            <div class="etcfooter">
                <img src="<?php echo $view->config['template_url']; ?>assets/images/bg_footer.png" alt="" />
                <div style="margin: 0px auto; width: 700px; text-align: right;padding-top: 5px;">
                    <a style="margin: 10px;" href="javascript:webjs.showTOSWindow();"><?php echo $view->t("TOS link");?></a>
                </div>
            </div>            
        </div>            
        <script src="//connect.facebook.net/en_US/all.js"></script>
        <script type="text/javascript" charset="utf-8">
            FB.init({
                appId  : '<?php echo $view->config['facebook_app_id']; ?>',
                status : true, // check login status
                cookie : true, // enable cookies to allow the server to access the session
                xfbml  : true, // parse XFBML
                oauth  : true // enable OAuth 2.0
            });
        </script>
        <script type="text/javascript">
            // set up for lightbox
            facebooktab.lightboxPaddingTop = 320;
            facebooktab.lightboxAutoAdjust = false;
            webjs.availableDay = "<?php echo date("d");?>";
            <?php if ($view->settings['date_check']) { ?>
                    webjs.dateCheck = "<?php echo $view->settings['date_check']; ?>";
            <?php } ?>

                    webjs.langs = {
                        today_question: "<?php echo $view->t("Today __s question,"); ?>",
                        dot_december: "<?php echo $view->t(". mars"); ?>",
                        cancel: "<?php echo $view->t("Cancel"); ?>",
                        close: "<?php echo $view->t("Close"); ?>",
                        please_wait: "<?php echo $view->t("Please wait"); ?>",
                        thank_message: "<?php echo $view->t("<center>Thanks for your reply<br/><br/>All winners will be contacted via E-mail.</center>"); ?>"
                    };
                    webjs.key = "<?php echo $view->key; ?>";
                    webjs.uid = "<?php echo $view->config['user_id']; ?>";
                    webjs.langcode = "<?php echo $view->config['language']; ?>";
                    webjs.tostitle = "<?php echo mysql_escape_string($view->t("TOS title")); ?>"   
            <?php
            $share_title = $view->settings['facebook_share_title'];
            $share_description = $view->settings['facebook_share_text'];
            ?>
                    webjs.setFacebookShareData({
                        name: '<?php echo $share_title; ?>',
                        picture: '<?php echo $view->settings['facebook_share_image_url']; ?>',
                        caption: '<?php echo $share_title; ?>',
                        url: '<?php echo $view->config['facebooktab_share_url']; ?>',
                        description: '<?php echo $share_description; ?>',
                        actionText:'<?php echo $view->settings['facebook_share_action_text']; ?>'
                    });
        </script>
        <script type="text/javascript" charset="utf-8">
            FB.Canvas.setSize({ width: 810, height: <?php echo $view->frontendsetup['facebook_tab_height']; ?> });
        </script>
        <!-- END SCRIPT -->
    </body>
</html>